put card field "barrier distance" into barrierDistance
put (card field "table speed")*(card field "time Increment") into tableIncrement3
put (card field "puck speed")*(card field "time increment") into puckIncrement3
end setParameters
-- part 1 (field)
-- low flags: 02
-- high flags: 0002
-- rect: left=272 top=65 right=82 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Table Speed
-- part 3 (field)
-- low flags: 02
-- high flags: 0002
-- rect: left=272 top=85 right=102 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Puck Speed
-- part 4 (field)
-- low flags: 02
-- high flags: 0002
-- rect: left=272 top=105 right=122 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Barrier distance
----- HyperTalk script -----
on closeField
get me
if it > 150 or it < 10 then
answer "That value must be between 10 and 150."
select line 1 of me
end if
end closefield
-- part 5 (field)
-- low flags: 02
-- high flags: 0002
-- rect: left=272 top=125 right=142 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Time increment
-- part 6 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=11 top=40 right=326 bottom=403
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name: Help
-- part contents for card part 1
----- text -----
30
-- part contents for card part 3
----- text -----
50
-- part contents for card part 4
----- text -----
60
-- part contents for card part 5
----- text -----
.1
-- part contents for background part 6
----- text -----
Changing values in the top half alters the path of the puck.
-- part contents for card part 6
----- text -----
The parameters below the gray bar are constants provided for your benefit. They may not be changed without altering the calculation scripts attached to the card.
The parameters listed above the bar are variable. To change any of them, drag across the box holding the value and type the new value. Pressing <return> will automatically select the value in the next field.
Any change in the controlled parameters will be reflected as a change in the outcome of the experiment. Feel free to play around.